package com.yonyou.component;

import com.intellij.notification.NotificationType;
import com.intellij.openapi.module.ModuleComponent;
import com.intellij.openapi.module.Module;


import com.yonyou.ctm.ctmplugin.utils.NotificationUtil;
import org.jetbrains.annotations.NotNull;

public class SparrowModule implements ModuleComponent {
    public SparrowModule(Module module) {
    }
    @Override
    public void initComponent() {
        // TODO: insert component initialization logic here
        NotificationUtil.showNotification(NotificationType.ERROR,"SparrowModule.initComponent");
    }
    @Override
    public void disposeComponent() {
        // TODO: insert component disposal logic here
        NotificationUtil.showNotification(NotificationType.ERROR,"SparrowModule.disposeComponent");
    }

    @Override
    public void moduleAdded() {
        // Invoked when the module corresponding to this component instance has been completely
        // loaded and added to the project.
        NotificationUtil.showNotification(NotificationType.WARNING,"SparrowModule.moduleAdded");
    }

    @Override
    @NotNull
    public String getComponentName() {
        return "SparrowModule";
    }
}
